package org.cybertech.mobile.web;

import java.util.List;

import org.cybertech.dubbo.api.entity.AddressEntity;
import org.cybertech.dubbo.api.service.IAddressService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.reger.dubbo.annotation.Inject;

@RestController
public class IndexController {
	@Inject
	public IAddressService addressService;
	
	@RequestMapping("/index")
	public List<AddressEntity> index(){		
		return addressService.findAllList();
	}
}
